<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5_溢出文本替换为省略号</title>
    <style>
        div{
            background-color: yellow;
            width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
<div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam consectetur facere in placeat ullam. Alias atque, ea fugit ipsam iusto maxime necessitatibus nobis perspiciatis recusandae tempore temporibus vero voluptate voluptatum.
</div>
</body>
</html>